package com.shitou.shitoucommons.interceptor;

import com.shitou.shitoucommons.opfeign.MemberFeign;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * class detail:
 *      所有的拦截器
 * @author 石头人
 */
@SuppressWarnings("all")
public interface CheckMemberInterceptor {

    /**
     * 用户是否登录校验
     * @param handler
     * @param request
     * @param response
     * @return
     * */
    boolean checkLogin(Object handler, HttpServletRequest request, HttpServletResponse response, MemberFeign memberFeign);



    /**
     * 用户权限校验
     * @param handler
     * @param request
     * @param response
     */
    boolean checkAuthority(Object handler, HttpServletRequest request, HttpServletResponse response, MemberFeign memberFeign);





}
